<?php require 'header.php';?>
<div class="mainDiv">
	<div class="innerMain">
		<div class="innerTab"> <span class="announceT"></span> </div>
			<div class="userInfoCenter">
				<?php require 'user_left.php';?>
				<div class="userInfoRight">
					<table class="buglistTab">
          <thead>
            <tr>
              <th>礼物名称</th>
              <th>状态</th>
            </tr>
          </thead>
          <tfoot>
            <tr>
              <td colspan="2"><?php echo Qtpl::paged($_tpl['pageSize'],core_lib_constant::PAGE_NUM,$_tpl['page'],'gift','index','style','admin');?></td>
            </tr>
          </tfoot>
          <tbody>
          <?php 
          if($_tpl['gift']){
          	foreach ($_tpl['gift'] as $k=>$v) {
          		$altrow = $k/2 == 0 ? 'alt-row' : '';
          ?>
           <tr class="<?php echo $altrow;?>">
            <td><?php echo $v['gift_name'];?></td>
            <td><?php echo $v['is_send'] == 1 ? "已发货/".date('Y-m-d',$v['send_time']) : ($v['cancel'] == 1 ? "已取消/".date('Y-m-d',$v['cancel_time']) : "未处理/".date('Y-m-d',$v['create_time']));?></td>
          <?php
          		}
          	}else{
          		echo '<td colspan="2">暂无内容</td>';
          	}
          ?>
          </tr>
         </tbody>
        </table>
				</div>
			</div>
	</div>
</div>
<?php require 'footer.php';?>